package com.basker.pisces.core.meta.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 标记时间戳字段
 *
 * @author hangwen
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(value = {ElementType.FIELD, ElementType.METHOD})
public @interface TimestampField {

    TimestampType type() default TimestampType.Mills;

    public enum TimestampType {
        Mills, Seconds
    }
}
